package com.digitalxpert.jargle.client;


import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;

public class JGMouseAdapter extends MouseAdapter
{
 String messageEntered;
 String messageExited;
 JLabel status;

 public JGMouseAdapter(String messageEntered,String messageExited, JLabel status)
 {
  this.messageEntered=messageEntered;
  this.messageExited=messageExited;
  this.status=status;
 }
 public void mouseEntered(MouseEvent e)
 {
  status.setText(messageEntered);
 }
 public void mouseExited(MouseEvent e)
 {
  status.setText(messageExited);
 }
}
